import Vue from 'vue'
import App from './App'

import pageHead from './components/page-head.vue'
import pageFoot from './components/page-foot.vue'

import store from './store'

Vue.config.productionTip = false

Vue.prototype.gameApiUrl = 'http://game.xiikk.top/game/6';
Vue.prototype.gameApiId = '6';
Vue.prototype.gameApiSecret = 'b7117837dcdd91da145a8993c7f2d37e';


Vue.prototype.ApiUrl = 'http://www.chuanqi668.xyz';


Vue.prototype.now = Date.now || function () {
    return new Date().getTime();
};
Vue.prototype.isArray = Array.isArray || function (obj) {
    return obj instanceof Array;
};


Vue.prototype.$store = store
Vue.prototype.$backgroundAudioData = {
	playing: false,
	playTime: 0,
	formatedPlayTime: '00:00:00'
}

Vue.component('page-head',pageHead)
Vue.component('page-foot',pageFoot)


App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
